<style>
	#content .title-form{
		width:100%;
		font-size:1.4em;
		font-weight:bold;	
		margin:0px 0px 15px 0px;
}
	
	#content form{
		width:230%;
}
	#content form textarea{
		
}
	#content form .title-row{
		float:left;
		font-size:1em;
		width:25%;
}
	#content form select{
		boder:1px solid #ababab;
}

</style>	

<script type="text/javascript">

function showForm(){
    $("#change_pass2").hide();
	$("#change_pass").show(); 
}

</script>
	<?php $data= $this->data;  ?>

	
			
	<div id="content">
 	 	<?php 
		if($this->success){
		?>
			<div class="notification success" >
				<span class="strong">Thao tác thành công.</span>
				<span class="close" title="Dismiss"></span>
			</div>
			<?php
		}
		
		if($this->warning){
			?>
				<div class="notification warning" >
					<span class="strong">Dữ liệu bạn nhập còn thiếu. Xin vui lòng kiểm tra lại!</span>
					<span class="close" title="Dismiss"></span>
				</div>
				<?php
			}
	?>
     	<section class="grid_9" id="dashtabs" style="width:98%;min-height:400px;">	
			<div id="contact_form">
				<p class="title-form">Edit Profile</p>
                
               
               <form method="post" name="contact" action="" enctype="multipart/form-data">
                    <input type="text" value="<?php echo $data[0]['id'] ?>" name="id" style="display: none;" />
                    <input style="display: none;" class="required input_field" style="width:250px;"  type="text" name="old_pass" value="<?php echo  $data[0]['password'];  ?>" />
               
                    <label for="author" class="title-row">Họ tên:</label> <input class="required input_field" style="width:250px;"  type="text" name="name" value="<?php echo $data[0]['name']; ?>"  />
                    <div class="cleaner h10"></div>
						
                    <label for="subject" class="title-row">SHSV:</label> <input class="required input_field" style="width:250px;"  type="text" name="shsv" readonly="true" value="<?php echo $data[0]['shsv'] ?>" />
                    <div class="cleaner h10"></div>
                    
                    <label for="email" class="title-row">Ngày sinh:</label> <input class="required input_field" style="width:250px;"  type="text" name="birthday" value="<?php echo $data[0]['birthday'] ?>" />
                    <div class="cleaner h10"></div>
                    
                      
                    <label for="email" class="title-row">Lớp:</label> <input class="required input_field" style="width:250px;"  type="text" name="class" value="<?php echo $data[0]['class'] ?>" />
                    <div class="cleaner h10"></div>
                  
                    
                    <label for="email" class="title-row">Khóa:</label> <input class="required input_field" style="width:250px;"  type="text" name="course" value="<?php echo $data[0]['course'] ?>" />
                    <div class="cleaner h10"></div>
                  
                    <label for="subject" class="title-row">Tên tài khoản: </label> <input class="required input_field" style="width:250px;"  type="text" name="username" value='<?php echo $data[0]['username'] ?>' />
                    <div class="cleaner h10"></div>
                    
                    <label id="change_pass2" for="subject" class="title-row"><a href="#" onclick="showForm()">Đổi mật khẩu</a></label>
                    <div style="display: none;" id="change_pass">
                        <label for="subject" class="title-row">Mật khẩu hiện tại:</label> <input  class="required input_field" style="width:250px;"  type="password" name="old_pass2" value="" />
                        <div class="cleaner h10"></div>
                        
                        <label for="subject" class="title-row">Mật khẩu mới:</label> <input class="required input_field" style="width:250px;"  type="password" name="new_pass" value="" />
                        
                        <div class="cleaner h10"></div>
                        
                        <label for="subject" class="title-row">Nhập lại mật khẩu:</label> <input class="required input_field" style="width:250px;"  type="password" name="retype_pass" value="" />
                        <div class="cleaner h10"></div>
     					</div>
					<input style="background:#68AAEE;margin-left:30px;" type="submit" value="Send" id="submit" name="submit" class="submit_btn float_l" />
				    <button style="background:#68AAEE;margin-left:15px;" class="submit_btn float_l" id="btnAddRow" onclick="javascript:window.location='../index'; return false;">Back</button>
                </form>
            </div>
        </section>
    </div>